package com.example.mybatisee.dao;

import com.example.mybatisee.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper

public interface UserInfoMapper {
    //新增
    public int addUser(UserInfo userInfo);

    //查找
    public UserInfo getUserInfoById(int id);

    //多条查询
    public List<UserInfo> getAll();

    //删除
    public int delByIdInt(int id);

    //修改
    public int update(int id,String username);

    //一对多查询
    public UserInfo getFull(int id);
}
